package com.hyt.it.ogt.kq.service.bm.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hyt.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 发票回调信息
 * </p>
 *
 * @author liteng
 * @since 2020-09-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bm_invoice_result")
@ApiModel(value="InvoiceResult对象", description="发票回调信息")
public class InvoiceResult extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private String bmInvoiceId;

    @ApiModelProperty(value = "发票请求流水号每个请求流水号只能开一次,流水号前面以公司名称前缀例")
    private String fpqqlsh;

    @ApiModelProperty(value = "发票代码")
    private String fpDm;

    @ApiModelProperty(value = "发票号码")
    private String fpHm;

    @ApiModelProperty(value = "开票日期")
    private LocalDateTime kprq;

    @ApiModelProperty(value = "PDF 下载地址")
    private String pdfUrl;

    @ApiModelProperty(value = "收票地址-用该地址生成二维码，供用户扫码获取发票 成功必填")
    private String spUrl;

    @ApiModelProperty(value = "发票状态 被红冲标志，1-未红冲，2-已红冲 纸票：3-已开废票，4-空白作废")
    private String fpzt;

    @ApiModelProperty(value = "0 成功 1 待确认 2 失败 3 待开具")
    private String rsCode;

    @ApiModelProperty(value = "消息描数")
    private String rsMsg;

    private String jym;

    @ApiModelProperty(value = "0000 成功，0001 正在开具,其它失败")
    private String innerRsCode;


}
